import { get, getBuffer, postJson, postFile, del } from "./http.js";
let api = process.env.VUE_APP_API;
if (process.env.VUE_APP_Mock === "true") {
  api = "/mock/";
}

// 获取房间的列表
export const getListRoom = async (p) => await get(`${api}/witness/track/listRoom`,p);
// 项目人员的列表
export const personProject = async (p) => await get(`${api}/witness/track/listPerson`,p);
//获取历史轨迹
export const listTrack = async (p) => await get(`${api}/witness/track/listTrack`,p);